package com.dingreading.cloud.soms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "staff_roles")
public class StaffRoles implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String storeUid;

    private String staffUid;

    /**
     * 员工角色
     */
    private String roles;

    /**
     * 是否启用 0.否 1.是
     */
    private Integer enabled;

    /**
     * 是否有管理界面 0.否 1.是
     */
    private Integer isHeadquarterStaff;

    /**
     * 是否是门店员工 0.否 1.是
     */
    private Integer isStoreStaff;

    /**
     * 是否在门店代课 0.否 1.是
     */
    private Integer inStoreService;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * 创建人uid
     */
    private String addStaffUid;

    /**
     * 创建人姓名
     */
    private String addStaffName;

    /**
     * 更新人uid
     */
    private String lastStaffUid;

    /**
     * 更新人姓名
     */
    private String lastStaffName;

    /**
     * 角色名
     */
    private String roleName;

}
